using Wips.AppService.Authorities.Menus.ViewModels;
using Wips.AppService.CommonViewModels;

namespace Wips.AppService.Authorities.Menus.Responses
{
    /// <summary>
    /// 读取菜单树形数据响应类
    /// </summary>
    public class GetMenuTreeDataResponse : MenuViewModel
    {
        /// <summary>
        /// key
        /// </summary>
        public string Key { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime Created { get; set; }

        /// <summary>
        /// 最后更新时间
        /// </summary>
        public DateTime? Updated { get; set; }

        /// <summary>
        /// 操作列表
        /// </summary>
        public IList<SelectViewModel> Operations { get; set; }

        /// <summary>
        /// 菜单类型
        /// </summary>
        public string MenuType { get; set; }

        /// <summary>
        /// 子项
        /// </summary>
        public IList<GetMenuTreeDataResponse> Children { get; set; } = new List<GetMenuTreeDataResponse>();
    }
}